use Test::More tests=> 3;

use strict;
use Data::Dumper;

use DateTime::Cursor;

my $now = DateTime->now( time_zone => 'UTC' );
my $cursor = DateTime::Cursor->new({pivot => $now});
my $pivot = $cursor->get_pivot();
ok((!(!$pivot)), "checking boolean coercion");
is("$pivot", "" . $now->iso8601(), "checking string coercion");
is((int $cursor), (int $now->epoch), "checking number coercion");

